<?php
/**
 * Production configuration
 * Usage:
 * - Online website
 * - Production DB
 * - Standard production error pages (404, 500, etc.)
 */

$basePath = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..');
$files = dirname(realpath(dirname(__FILE__) . '/../../index.php')) . '/files';

return array(
	'yiiPath'=>"$basePath/framework/yii.php",
	'yiicPath'=>"$basePath/framework/yiic.php",
	'yiitPath'=>"/$basePath/framework/yiit.php",
	'yiiDebug'=>false,
	'yiiTraceLevel'=>3,
	'configWeb'=>array(
//		'catchAllRequest'=>array('site/page', 'view'=>'building'),
		'components'=>array(
			'db'=>array(
				'connectionString'=>'mysql:host=mysql13.000webhost.com;dbname=a1096645_hayate',
				'emulatePrepare'=>true,
				'username'=>'a1096645_hayate',
				'password'=>'Hayate2012',
				'charset'=>'utf8',
			),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
					array(
						'class'=>'CEmailLogRoute',
						'levels'=>'error, warning',
						'emails'=>'andy.julot@gmail.com',
					),
				),
			),
		),
		'params'=>array(
			'mode'=>'production',
			'company'=>'Seraphim',
			'adminEmail'=>'hayate@ashitahadochida.site11.com',
			'admin'=>array(
				'name'=>'Julot',
				'email'=>'andy.julot@gmail.com',
			),
			'files'=>$files,
			'reCaptcha'=>array(
				'key'=>array(
					'public'=>'6LeTxdASAAAAALqyQ915SNXxPJytvxt8LhklL7ps',
					'private'=>'6LeTxdASAAAAAE3HAN8raG6kUPeTy20Ai6P9zj4t',
				),
			),
		),
	),
	'configConsole'=>array(
		'components'=>array(
			'log'=>'inherit',
		),
		'params'=>'inherit',
	),
);
